package net.csdn.business.common.domain.query.mirror;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TokenConfigQuery {

    /** 镜像仓库所属平台： 0:github 1:gitee **/
    @NotNull(message = "type不能为空")
    @Min(value = 0, message = "type不合法:0:github 1:gitee ")
    @Max(value = 1, message = "type不合法:0:github 1:gitee ")
    private Integer type;

    /** 用户id **/
    //@NotBlank(message = "userId不能为空")
    private String userId;
}
